package com.yugao.fintech.libra.workflow.mapper;

import com.yugao.fintech.libra.workflow.domain.FlowDefRelation;
import com.yugao.fintech.libra.workflow.domain.FlowTaskRelation;
import com.yugao.fintech.libra.workflow.domain.dto.FlowProcDefDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IFlowRelationMapper {

    List<FlowProcDefDto> defList(@Param("name") String name, @Param("category") String category);

    FlowProcDefDto queryDefByProcDefId(@Param("procDefId") String procDefId);

    int addDef(FlowDefRelation flowDefRelation);

    FlowDefRelation queryDefByCategory(@Param("category") String category);

    int removeDefByDeployId(@Param("deployId") String deployId);

    int editDefStatusByDeployId(@Param("deployId") String deployId, @Param("status") Integer status);

    int addTask(FlowTaskRelation flowTaskRelation);

    FlowTaskRelation queryTaskByProcInsId(@Param("procInsId") String procInsId);

}
